import { sendOrderStatementWriteOffCode } from '@/api/order'
import { ref } from 'vue'

// 发送接单核销码加载
const sendOrderStatementWriteOffCodeLoading = ref(false)

// 发送接单核销码方法
const sendOrderStatementWriteOffCodeFn = async (id: string) => {
  sendOrderStatementWriteOffCodeLoading.value = true
  const res = await sendOrderStatementWriteOffCode(id)
  sendOrderStatementWriteOffCodeLoading.value = false
  return res.data
}

export default {
  sendOrderStatementWriteOffCodeLoading,
  sendOrderStatementWriteOffCodeFn,
}
